function showAlert(msg){
    var data="<p>"+msg+"</p>";
    $("#alertModal div").eq(1).html(data);
    $("#btnAlert").click();
}

function showNotify(msg,title){
    $.gritter.add({
        title:	title,
        text:	msg,
        sticky: false
    });
}

function showTip(msg){
    showNotify(msg,'提示');
}

function logout(){
    $.post("/Home/Login/logout",null,function(jsonData){
        if(jsonData.STATUS=="1"){
            location="/Home/Login/login";
        }
        else{
            showAlert(jsonData.MESSAGE);
        }
    },"json")
}